home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-22 | 2.1 KB | 50 lines | [TEXT/MPCC] |
- //
- // File: TestFunctions.h
- //
- // Contains: Localized sound support for QuickTime VR movies.
- //
- // Written by: Tim Monroe
- //
- // Copyright: © 1996 by Apple Computer, Inc., all rights reserved.
- //
- // Change History (most recent first):
- //
- // <1> 12/05/96 rtm ported earlier 3D sound support functions to VRShell
- //
- //
-
- // header files
-
- #include "Movies.h"
- #include "QTVR.h"
- #include "QTVRFrmt.h"
- #include "Sound.h"
- #include "SoundComponents.h"
- #include "SoundSprocket.h"
-
- #include "MacApplication.h"
- #include "MacFramework.h"
-
- // constants
- #define kObjectDistance 1.0
-
- // function prototypes
- void VR3DSound_Init (void);
- ApplicationDataHdl VR3DSound_InitWindowData (WindowObject theWindowObject);
- SndChannelPtr VR3DSound_CreateLocalizedChannel (void);
- SSpSourceReference VR3DSound_CreateLocalizedSource (void);
- void VR3DSound_PlaySilence(WindowObject theWindowObject, short theChannelIndex);
- void VR3DSound_PlayResource(WindowObject theWindowObject, short theChannelIndex, short theResID);
- UInt32 VR3DSound_CountSoundHotSpotsInNode (WindowObject theWindowObject);
- void VR3DSound_Update3DSoundEnv (WindowObject theWindowObject);
- void VR3DSound_StartNodeSounds (WindowObject theWindowObject);
- void VR3DSound_StopNodeSounds (WindowObject theWindowObject);
- void VR3DSound_DumpNodeSounds (WindowObject theWindowObject);
- void VR3DSound_InstallPrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
- void VR3DSound_InstallInterceptRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
- pascal OSErr VR3DSound_PrescreenRoutine (QTVRInstance theInstance, WindowObject theWindowObject);
- pascal void VR3DSound_InterceptRoutine (QTVRInstance theInstance, QTVRInterceptPtr theMsg, WindowObject theWindowObject, Boolean *cancel);
- pascal OSErr VR3DSound_EnteringNodeProc (QTVRInstance theInstance, long nodeID, WindowObject theWindowObject);
- pascal OSErr VR3DSound_LeavingNodeProc (QTVRInstance theInstance, long fromNodeID, long toNodeID, Boolean *cancel, WindowObject theWindowObject);
- void MyTestFunc (QTVRInstance theInstance);
-